<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript">
		var i = 0
		function insert_row(obj) {
			i++;
			R = tbl.insertRow(tbl.rows.length);
			C = R.insertCell(0);
			C.innerHTML = '<div class="input-group"><input  style="width:276px;" type="text" class="form-control" name="Check_Content"></div>';	
			C = R.insertCell(1);
			C.innerHTML = '<input type="button" class="btn btn-danger" onclick ="deleteRow(this)" value ="删除">';
		}
		function deleteRow(obj) {
			var i = obj.parentNode.parentNode.rowIndex;
			if (i > 0) {
				tbl.deleteRow(i-1);
			}
		}
	</script>
<script type="text/javascript" src="${ctx}/js/forming/changeshifts/inspect_add.js">
</script>

<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
<script type="text/javascript">
$(function(){
	jeDate({
		dateCell:"#handleTime",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:false,
		isTime:true, 
		isClear:false,
		minDate:"2014-09-19 00:00:00"
	});

})

</script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/handover/inspect_addEntity.shtml">
		<section class="panel panel-default">
		<div class="panel-body">		
			<div class="form-group">
				<label class="col-sm-3 control-label">点检项目:</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh"
						placeholder="请输入点检项目" name="moldingInspectionFormMap.Check_Inspection" id="nc_code_group_no">
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="panel-body">		
			<div class="form-group">
				<label class="col-sm-3 control-label">类别:</label>
				<div class="col-sm-9">
						<select style="width: 30%; display: inline;" class="form-control" name="moldingInspectionFormMap.Department">
						<option value="1">交接班检查</option>
						<option value="2">装拆模检查</option>
					</select>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>						
			<div class="panel panel-default">
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th style="width:276px;">点检内容 </th>
								<th style="width:20px;"><input type="button"
									class="btn btn-primary" onclick="insert_row(this)" value="增加"></th>
							</tr>
						</thead>
						<tbody id="tbl">						
						</tbody>
					</table>
				</div>
			</div>
				
		</div>
		<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
		</section>
	</form>
</body>
</html>